#include "EtatEnCharge.h"
#include "EtatEnChargeFaceObstacle.h"
#include "EtatAVide.h"

void EtatEnCharge::avancer() {}

void EtatEnCharge::rencontrerObstacle(Robot* r) {
	r->setEtat(EtatEnChargeFaceObstacle::getEtat());
	r->setEtatCourant("EtatEnChargeFaceObstacle");
}

int EtatEnCharge::peser() {
	return 1;
}

void EtatEnCharge::poser(Robot* r) {
	r->setEtat(EtatAVide::getEtat());
	r->setEtatCourant("EtatAVide");
}
